home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx)))) VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- VkWindow - Base class for all top-level windows with menus
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- VkSimpleWindow : VkComponent : VkCallbackObject
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <Vk/VkWindow.h>
-
- PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
- VkWindow(const char *name,
- ArgList args = NULL,
- Cardinal argCount = 0);
-
- virtual ~VkWindow();
-
-
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr ---- VVVViiiieeeewwwwKKKKiiiitttt 2222....1111 oooonnnnllllyyyy
- VkWindow(const char *name,
- VkScreen *screen,
- ArgList args = NULL,
- Cardinal argCount = 0);
-
-
- AAAAddddddddiiiinnnngggg mmmmeeeennnnuuuussss
- void setMenuBar(VkMenuBar *menuObj);
- void setMenuBar(VkMenuDesc *menudesc);
- void setMenuBar(VkMenuDesc *menudesc,
- XtPointer clientData);
-
- VkSubMenu *addMenuPane(const char *name);
- VkSubMenu *addMenuPane(const char *name,
- VkMenuDesc *desc);
-
- VkRadioSubMenu *addRadioMenuPane(const char *name);
- VkRadioSubMenu *addRadioMenuPane(const char *name,
- VkMenuDesc *desc);
-
-
- AAAAcccccccceeeessssssss FFFFuuuunnnnccccttttiiiioooonnnnssss
- virtual VkMenuBar *menu() const;
- virtual const char *className();
- static VkMenuBar *getMenu(VkComponent *object);
- static VkWindow *getWindow(VkComponent *component);
-
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The VkWindow class exhibits similar behavior as VkSimpleWindow except
- that it provides additional support for a menubar, based on the VkMenuBar
- class and related VkMenuItem classes. Menus can be added from outside the
- class, using the public protocol, but it is generally recommended that
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx)))) VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx))))
-
-
-
- menus be added by derived classes to maintain encapsulation of all
- operations associated with a window. The VkWindow class automatically
- causes a help menu pane to be added to all menu bars.
-
- DDDDeeeerrrriiiivvvviiiinnnngggg SSSSuuuubbbbccccllllaaaasssssssseeeessss
- Class can be derived in much the same way as classes derived from
- VkSimpleWindow. Views can be added by either calling addView in the
- constructor or by defining a setUpInterface() member function. Menus may
- also be added either in the constructor, or in the setUpInterface()
- member function, depending on whether or not there is an advantage to
- delaying menu creation until the window is shown. The cost of creating
- menus in advance is small, since the widgets associated with a hierarchy
- of VkMenuItems is never built until the menu is displayed.
-
- The following example adds a menu pane named "Application" to a window's
- menubar. The pane supports a single action, which exits the application.
-
- #include <Vk/VkApp.h>
- #include <Vk/VkSimpleWindow.h>
- #include <Vk/VkRadioBox.h>
- #include <Vk/VkSubMenu.h>
-
- class SampleWindow: public VkSimpleWindow {
-
- private:
-
- static void quitCallback(Widget, XtPointer, XtPointer);
-
- public:
-
- SampleWindow ( const char *name ) : VkSimpleWindow ( name )
- {
- VkRadioBox *rb = new VkRadioBox("check", mainWindowWidget());
-
- rb->addItem("one");
- rb->addItem("two");
- rb->addItem("three");
- rb->addItem("four");
-
- addView(rb);
-
- // Add a menu pane
-
- VkSubMenu *pane = addMenuPane("Application");
- pane->addAction("Quit", &SampleWindow::quitCallback, (XtPointer) this);
- }
-
- // Destructor, className() functions not provided
- };
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx)))) VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx))))
-
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- VVVVkkkkWWWWiiiinnnnddddoooowwww
- VkWindow(const char *name,
- ArgList argList = NULL,
- Cardinal argCount = 0);
-
-
- The VkWindow constructor simply initializes internal data members
- and calls the VkSimpleWindow constructor.
-
- VVVVkkkkWWWWiiiinnnnddddoooowwww ---- VVVViiiieeeewwwwKKKKiiiitttt 2222....1111 oooonnnnllllyyyy
- VkWindow(const char *name,
- VkScreen *screen,
- ArgList argList = NULL,
- Cardinal argCount = 0);
-
-
- Creates an instance of VkWindow on the specified VkScreen.
-
- ~~~~VVVVkkkkWWWWiiiinnnnddddoooowwww
- virtual ~VkWindow();
-
-
- Destroys all memory allocated by this class. If this object has an
- of instance of VkMenuBar installed, it is destroyed as well,
- regardless of who created it.
-
- sssseeeettttMMMMeeeennnnuuuuBBBBaaaarrrr
- void setMenuBar(VkMenuBar *menuObj);
- void setMenuBar(VkMenuDesc *menudesc);
-
-
- This function installs a VkMenuBar object as the window's menubar.
- The menubar may be specified as an instance of VkMenuBar, or
- provided as a description of a menu hierarchy. See VkMenuBar(3X).
-
- aaaaddddddddMMMMeeeennnnuuuuPPPPaaaannnneeee
- VkSubMenu *addMenuPane(const char *name);
- VkSubMenu *addMenuPane(const char *name, VkMenuDesc *desc);
-
-
- This function adds a named menu pane to the window's menu bar An
- optional menu description of the contents may be supplied. If no
- menu bar is currently installed, one is created automatically.
-
- aaaaddddddddRRRRaaaaddddiiiiooooMMMMeeeennnnuuuuPPPPaaaannnneeee
- VkRadioSubMenu *addRadioMenuPane(const char *name);
- VkRadioSubMenu *addRadioMenuPane(const char *name, VkMenuDesc *desc);
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx)))) VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx))))
-
-
-
- This function adds a menu pane that supports toggle items and has
- radio behavior. An optional menu description of the contents may be
- supplied. If no menu bar is currently installed, one is created
- automatically.
-
- mmmmeeeennnnuuuu(((())))
- virtual VkMenuBar *menu() const;
-
-
- Returns a pointer to a VkWindow object's menu instance.
-
- ggggeeeettttMMMMeeeennnnuuuu(((())))
- static VkMenuBar *getMenu(VkComponent *object);
-
-
- This static member function returns the menubar used by the window
- that contains the given VkComponent. This allows components to add
- items to menubars of windows in which they are placed, without a
- hard coded connection between the window and the component.
-
- ggggeeeettttWWWWiiiinnnnddddoooowwww(((())))
- static VkSimpleWindow *getWindow(VkComponent *component);
-
-
- Returns the VkWindow object (or subclass) that contains the given
- VkComponent. This allows components to operate on the window in
- which they are contained, without a hard coded connection between
- the window and the component.
-
- ccccllllaaaassssssssNNNNaaaammmmeeee
- virtual const char* className();
-
-
- This class's class name is "VkWindow".
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkSSSSiiiimmmmpppplllleeeeWWWWiiiinnnnddddoooowwww
- afterRealizeHook(), show(), hide(), *(), setUpWindowProperties(),
- stateChanged(), handleWmDeleteMessage(), handleRawEvent(),
- VkSimpleWindow(), ~VkSimpleWindow(), addView(), addView(),
- removeView(), open(), raise(), lower(), iconize(), iconify(),
- getTitle(), setTitle(), setIconName(), setClassHint(), iconic(),
- visible(), mainWindowWidget(), viewWidget(), _iconState,
- _visibleState, _stackingState, _mainWindowWidget,
-
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
- installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
- setDefaultResources(), getResources(), realize(), manage(),
- unmanage(), name(), baseWidget(), okToQuit(), isComponent(), _name,
- _baseWidget, _w, deleteCallback
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx)))) VVVVkkkkWWWWiiiinnnnddddoooowwww((((3333xxxx))))
-
-
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
- callCallbacks(), addCallback(), removeCallback(),
- removeAllCallbacks()
-
-
- KKKKNNNNOOOOWWWWNNNN DDDDEEEERRRRIIIIVVVVEEEEDDDD CCCCLLLLAAAASSSSSSSSEEEESSSS
- VkMsgWindow
-
- CCCCLLLLAAAASSSSSSSSEEEESSSS UUUUSSSSEEEEDDDD BBBBYYYY TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- VkMenu, VkMenuBar, VkMenuItem
-
- KKKKNNNNOOOOWWWWNNNN CCCCLLLLAAAASSSSSSSSEEEESSSS TTTTHHHHAAAATTTT UUUUSSSSEEEE TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- VkGraph
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- VkSimpleWindow, VkComponent, VkCallbackObject, VkGraph, VkMenu,
- VkMenuBar, VkMenuItem
- _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
- _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-